﻿<%@ Page Title="Places possibilities management" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="ActiviteSiteLinkManagement.aspx.cs" Inherits="IAATO.Admin.ActiviteSiteLinkManagement" MaintainScrollPositionOnPostback="true" %>



<asp:Content runat="server" ID="BodyContent" ContentPlaceHolderID="MainContent">
    
    <h1><%: Title %></h1>
    <br />
    <asp:Label runat="server" ID="lblError" Text="" Font-Bold="true" ForeColor="Red"></asp:Label>
    <asp:GridView CssClass="gridView" OnPageIndexChanging="gdwLinks_PageIndexChanging" ID="gdwLinks" runat="server" AutoGenerateColumns="False" HeaderStyle-HorizontalAlign="Center" CellSpacing="-1" AllowPaging="True">
        <Columns>
            <asp:TemplateField HeaderText="Place">
                <ItemTemplate>
                    <asp:Label ID="lblSite" Text='<%# siteService.getNom((int)Eval("SITEID")) %>' runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText="Activity">
                <ItemTemplate>
                    <asp:Label ID="lblActivite" Text='<%# activiteService.getNom((int)Eval("ACTIVITEID")) %>' runat="server" />
                </ItemTemplate>
            </asp:TemplateField>

            <asp:TemplateField HeaderText="Delete">
                <ItemTemplate>
                    <asp:ImageButton ImageUrl="~/Images/delete/delete-26.png" ID="deleteButton" CommandArgument='<%# Eval("ACTIVITEID") + ";" + Eval("SITEID") %>' OnClientClick="return confirm('Do you really want to delete this lign?');" OnClick="delete_Click" runat="server" Width="26" Height="26" BackColor="Transparent" CausesValidation="True" />
                </ItemTemplate>
            </asp:TemplateField>


        </Columns>
        
        <HeaderStyle />
    </asp:GridView>
    <br />

    <asp:Table CssClass="tableModifier" ID="Table1" runat="server">
        <asp:TableHeaderRow>
            <asp:TableHeaderCell>Place</asp:TableHeaderCell>
            <asp:TableHeaderCell>Activity</asp:TableHeaderCell>
            
        </asp:TableHeaderRow>
        <asp:TableRow>
            <asp:TableCell><asp:DropDownList runat="server" ID="ddlSite"></asp:DropDownList></asp:TableCell>
            <asp:TableCell><asp:DropDownList runat="server" ID="ddlActivite"></asp:DropDownList></asp:TableCell>
            <asp:TableCell>
                <asp:Button runat="server" ID="btnAjouter" Text="Add" OnClick="btnAjouter_Click"></asp:Button>
            </asp:TableCell>
        </asp:TableRow>
    </asp:Table>
    
</asp:Content>